package cn.shop.front.service;

import cn.shop.transcation.order.entity.CertQueryReq;

import java.util.List;
import java.util.Map;

/**
 * @author : 李一涵
 * @date : Created in 2022/5/23 10:49
 * @description :
 */
public interface CartService {

    /**
     * 获取当前用户所有购物车订单号（用来与本地缓存进行比对）
     *
     * @param uid
     * @return
     */
    List<Long> cartOrders(long uid, String alias);

    Map<String, Object> carts(CertQueryReq req, String alias);

    boolean saveCarts(List<Long> ids, long uid, String alias);

    boolean deleteCarts(List<Long> ids);
}
